<div class="col-lg-12">
	<!--当前位置 start-->
	<div class="row">
		<div class="col-lg-12">
			<ol class="breadcrumb">
				<li><i class="fa fa-home mrg-r-sm"></i>首页
				</li>
				<li class="active"><span>会员卡编辑页面</span>
				</li>
			</ol>
		</div>
	</div>
	<!--当前位置 end-->

	<!--代码写在这里-->
	<div class="row">

		<div class="col-lg-12">
			<div class="main-box">
				<header class="main-box-header clearfix">
					<h2>会员卡编辑</h2>
				</header>
				<div class="main-box-body clearfix">
					<form class="form-horizontal" role="form">
						<div class="form-group">
							<label class="col-lg-2 control-label">会员卡号</label>
							<div class="col-lg-6">
								<input value=" {{card.card_id}}"  type="text" disabled class="form-control"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-lg-2 control-label">余额</label>
							<div class="col-lg-6">
								<input value=" {{card.fund}}"  type="text" disabled class="form-control"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-lg-2 control-label">创建时间</label>
							<div class="col-lg-6">					
								<input value=" {{card.create_time}}"  type="text" disabled class="form-control"/>
							</div>
						</div>
						
						<div class="form-group" ng-if="card.bind==1" >
							<label class="col-lg-2 control-label">绑定人员</label>
							<div class="col-lg-6">
								<input value=" 姓名： {{card.member.name}}"  type="text" disabled class="form-control"/>
							</div>
						</div>
						<div class="form-group" ng-if="card.bind==1">
							<label class="col-lg-2 control-label"></label>
							<div class="col-lg-6">
								 <input value="电话： {{card.member.phone}}"  type="text" disabled class="form-control"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-lg-2 control-label">会员卡状态</label>
							<div class="col-lg-6">
								<input value=" {{card.status}}"  type="text" disabled class="form-control"/>
							</div>
						</div>
						<h3>附属信息</h3>
						<div class="form-group"  ng-if="card.status=='origin'" >
							<label class="col-lg-2 control-label" >{{item.key}}</label>
							<div class="col-lg-6">
								 <!--<div>
		                            <span>请输入分派的对象类型</span>
		                            <input type="radio" ng-model="member.type" value="customer" checked />
		                            <input type="radio" ng-model="member.type" value="servant" checked />
		                        </div>-->
								<input type="text" class="form-control" ng-model="member.search" ng-keyup="searchMember()" placeholder="请输入要分派的人的姓名">
								<span>{{member.checkedSingle}}</span>
		                        <ul>
		                            <li style="cursor: pointer" ng-repeat="single in member.findAll" ng-click="dispatchCard( single )">
		                                <span>{{single.name}}</span>
		                                <span>{{single.work_number}}</span>
		                            </li>
		                        </ul>
							</div>
						</div>
						<div class="form-group">
				        	<label class="col-lg-2 control-label" >充值</label>
				        	<div class="col-lg-6">
								<input type="text" class="form-control"  ng-model="card.charge_number"  placeholder="请输入充值金额">
							</div>
								<a class="btn btn-success" ng-click="pay( card, 'charge' )">确定</a>
				        </div>
				        <div class="form-group">
				        	<label class="col-lg-2 control-label" >扣款</label>
				        	<div class="col-lg-6">
								<input type="text" class="form-control"  ng-model="card.pay_number"  placeholder="请输入扣款金额">
							</div>
								<a class="btn btn-success" ng-click="pay( card, 'pay' )">确定</a>
				        </div>
						<div class="form-group">
							<div class="col-lg-offset-2 col-lg-6">
								<!--<a class="btn btn-success" ng-click="create(operation)">确定</a>-->
								<a class="btn btn-danger" href="#/card">取消</a>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>